home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- Set_CDcounter(13)
- initLesson()
- CheckForTagWd()
- end
-
- on HideLastStep
- if (Get_NEXT() = 3) or (Get_NEXT() = 6) or (Get_NEXT() = 10) or (Get_NEXT() = 12) then
- UpdateCursors(18, 0)
- end if
- end
-
- on TheinitCursor
- initCursorCastNum()
- initCursorList(1)
- set CursorCastNum to getCursor(2)
- cursor([CursorCastNum, CursorCastNum + 1])
- end
-
- on checkScreenStatus
- CheckRollOver()
- CheckSnakeStatus()
- go(the frame)
- end
-
- on BlinkNext
- if (the timer > getTimer()) and not soundBusy(2) then
- startTimer()
- if the name of cast the castNum of sprite get_NEXTSprite() = "NEXT" then
- set the castNum of sprite get_NEXTSprite() to the number of cast "NEXT_E"
- else
- set the castNum of sprite get_NEXTSprite() to the number of cast "NEXT"
- end if
- end if
- end
-
- on PressBtn theBtn
- Set_PressedLast(theBtn)
- switchButt(Get_AnsSprite() + theBtn - 1, "down" & theBtn, "HandleBtn" && theBtn)
- end
-
- on GoNext
- if not get_Disabled() then
- sound stop 2
- UpdateCursors(18, 3)
- if Get_NEXT() = 1 then
- go("t1")
- else
- if Get_NEXT() = 2 then
- go("t2")
- else
- if Get_NEXT() = 3 then
- go("t3")
- else
- if Get_NEXT() = 4 then
- go("t4")
- else
- if Get_NEXT() = 5 then
- go("t5")
- else
- if Get_NEXT() = 6 then
- go("t6")
- else
- if Get_NEXT() = 7 then
- go("t7")
- else
- if Get_NEXT() = 8 then
- go("t8")
- else
- if Get_NEXT() = 9 then
- go("t9")
- else
- if Get_NEXT() = 10 then
- go("t10")
- else
- if Get_NEXT() = 11 then
- go("t11")
- else
- if Get_NEXT() = 12 then
- go("t12")
- else
- if Get_NEXT() = 13 then
- go("t13")
- else
- if Get_NEXT() = 14 then
- GoNextMovie()
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- Set_NEXT(Get_NEXT() + 1)
- end if
- end
-
- on stopMovie
- sound stop 1
- unLoad()
- setEmptyCursor()
- end
-
- on GoNextMovie
- PlaySound("GOSOUND.SO1")
- SaveHilite()
- Add_CDcounter(1)
- set cdNum to Get_CDcounter()
- set movieName to item cdNum of Get_CurrentSnakeScreens()
- go("INIT" & Get_ScreenSubject(), movieName & ".GEO")
- end
-
- on checkDoubleClick spriteNum
- global firstClickedSprite
- set theClick to 0
- if not get_oneClick() then
- set firstClickedSprite to spriteNum
- set_oneClick(1)
- set_lastClickTimer(the ticks)
- else
- if get_oneClick() and ((the ticks - get_lastClickTimer()) < 20) and (firstClickedSprite = spriteNum) then
- set_lastClickTimer(0)
- set theClick to 1
- else
- if (the ticks - get_lastClickTimer()) > 19 then
- set firstClickedSprite to spriteNum
- set_oneClick(1)
- set_lastClickTimer(the ticks)
- end if
- end if
- end if
- return theClick
- end
-
- on set_oneClick bool
- global oneClick
- set oneClick to bool
- end
-
- on get_oneClick
- global oneClick
- return oneClick
- end
-
- on set_lastClickTimer int
- global lastClickTimer
- set lastClickTimer to int
- end
-
- on get_lastClickTimer
- global lastClickTimer
- return lastClickTimer
- end
-